From bd40cf194c23c0fa605b0fb90cf1bc2bc25ce39f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Fri, 10 Aug 2012 02:39:43 +0200 Subject: [PATCH] recorder: Make toggle-recorder action available in the overview There's not really a good reason to not allow starting a recording in the overview ... https://bugzilla.gnome.org/show_bug.cgi?id=688202 --- js/ui/components/recorder.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js/ui/components/recorder.js b/js/ui/components/recorder.js index 40baf44c8..cbc3e9e0a 100644 --- a/js/ui/components/recorder.js +++ b/js/ui/components/recorder.js @@ -1,5 +1,6 @@ const Lang = imports.lang; +const Main = imports.ui.main; const Gio = imports.gi.Gio; const Meta = imports.gi.Meta; @@ -16,13 +17,16 @@ const Recorder = new Lang.Class({ }, enable: function() { - global.display.add_keybinding('toggle-recording', - this._bindingSettings, - Meta.KeyBindingFlags.NONE, Lang.bind(this, this._toggleRecorder)); + Main.wm.addKeybinding('toggle-recording', + this._bindingSettings, + Meta.KeyBindingFlags.NONE, + Main.KeybindingMode.NORMAL | + Main.KeybindingMode.OVERVIEW, + Lang.bind(this, this._toggleRecorder)); }, disable: function() { - global.display.remove_keybinding('toggle-recording'); + Main.wm.removeKeybinding('toggle-recording'); }, _ensureRecorder: function() { -- 2.39.5